const isOnFacebookApp = () => {
  const UA = window.navigator.userAgent || window.navigator.vendor || window.opera;
  return (UA.indexOf("FBAN") > -1) || (UA.indexOf("FBAV") > -1);
}

const isOnLineApp = () => {
  const UA = window.navigator.userAgent;
  return /(?=.*line).*$/i.test(UA);
}

const isAndroid = () => {
  return navigator.userAgent.match(/Android/i)
}

export {
  isOnFacebookApp,
  isOnLineApp,
  isAndroid
}